package com.sds.sweng.swat.miplatform.ui.design.actions;

import org.eclipse.gef.ui.actions.ActionBarContributor;
import org.eclipse.gef.ui.actions.DeleteRetargetAction;
import org.eclipse.gef.ui.actions.RedoRetargetAction;
import org.eclipse.gef.ui.actions.UndoRetargetAction;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchActionConstants;

public class MiplatformDesignEditorActionBarContributor extends ActionBarContributor {

	public MiplatformDesignEditorActionBarContributor() {
		super();
	}

	protected void buildActions() {
		addRetargetAction(new UndoRetargetAction());
		addRetargetAction(new RedoRetargetAction());
		addRetargetAction(new DeleteRetargetAction());
	}

	public void contributeToToolBar(IToolBarManager toolBarManager) {
		toolBarManager.add(getAction(IWorkbenchActionConstants.UNDO));
		toolBarManager.add(getAction(IWorkbenchActionConstants.REDO));
	}

	protected void declareGlobalActionKeys() {

	}

	public void setActiveEditor(IEditorPart editor) {
		super.setActiveEditor(editor);
	}
}
